package com.touzi.mapper;

import com.touzi.beans.dbs.chanpin.Chanpin;
import com.touzi.beans.dbs.chanpin.NewChanpin;

import java.util.List;

public interface ChanpinMapper {
    List<Chanpin> selectAll();

    List<Chanpin> selectAllKeY();

    Chanpin findById(int id);

    Chanpin findCPByDdh(String dingdanhao);

    int jianAChanpin(int id);

    int countAll();

    int insertANewReco(NewChanpin newChanpin);

    int xiugaiChanpin(Chanpin chanpin);
}
